<template>
    <div>
        <div class="d1">
            <p id="p1">今日抢购</p>
            <van-count-down id="time" :time="3600000">
                <template #default="timeData">
                    <span class="block">{{ timeData.hours }}</span>
                    <span class="colon">:</span>
                    <span class="block">{{ timeData.minutes }}</span>
                    <span class="colon">:</span>
                    <span class="block">{{ timeData.seconds }}</span>
                </template>
            </van-count-down>
            <p id="p2">查看更多></p>
        </div>
        <div class="d2">
            <mid></mid>
        </div>
    </div>
</template>

<script>
import mid from '../components/IndexMid32.vue';
    export default {
        components: {
            mid,
        },
        props: ["time"],
    }
</script>

<style lang="scss" scoped>
    .d1{
        display: flex;
        margin-top: 4vw;
        width: 100%;
        #p1{
            padding-left: 4vw;
            font-weight: bold;
            font-size: 5vw;
        }
        #time{
            margin-top: 1vw;
            padding-left: 2vw;
        }
        #p2{
            padding-left: 31vw;
            font-size: 3.5vw;
            margin-top: 1vw;
            color: #aaa;
        }
    }
    .d2{
        display: flex;
        padding-top: 2vw;
    }

    .colon {
        display: inline-block;
        margin: 0 4px;
        color: #ee0a24;
    }
    .block {
        display: inline-block;
        width: 5vw;
        color: #fff;
        font-size: 2vw;
        text-align: center;
        background-color: #fd5223;
        border-radius: 20%;
    }
</style>